import type { GoodsResult } from '@/types/goods'
import http from '@/utils/https'

/**
 * 获取商品详情数据
 * @param {string} id - 商品id
 * @returns {Promise}
 */
export function getGoodsDetailsAPI(id: string) {
  return http<GoodsResult>({
    method: 'GET',
    url: '/goods',
    data: {
      id,
    },
  })
}
